
package actions;

import entities.Client;
import gestion.GestionnaireRemote;
import java.util.List;

/**
 *
 * @author Alex
 */
public class ListeClients extends MiagetestAction {

    private List<Client> clients;

    public List<Client> getClients() {
        return clients;
    }
    
    @Override
    public String execute() {

        GestionnaireRemote gestionnaire = lookupGestionnaireRemote();
        clients = (List<Client>) gestionnaire.getAll(Client.class);

        setPage("listeClients");

        return SUCCESS;
    }
}
